﻿using System.Windows.Controls;
using System.Windows.Media.Imaging;
using CharacterCreation.Views.Contracts;

namespace CharacterCreation.Views {
    public partial class CharismaView : BaseView {

        public CharismaView() {
            InitializeComponent();
            this.ViewModel = new CharismaViewModel();
            this.HeaderText = "Charisma view";
            this.ViewImage = new BitmapImage(new System.Uri("/CharacterCreation;component/Images/Stat_Cha.png", System.UriKind.RelativeOrAbsolute));
        }

        private void DataGrid_RowEditEnding(object sender, DataGridRowEditEndingEventArgs e) {
            Data.DataContext.Store(e.Row.DataContext);
        }
    }
}
